package com.lc.controller;

import com.lc.entity.Order;
import com.lc.feign.UserOrderFeign;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author:LiChuang
 * Date: 2022/8/2 9:38
 */
@RestController
public class OrderController implements UserOrderFeign {


    @Override
    public String getUserOrder(Integer id) {
        System.out.println("id:" + id);
        Order o = Order.builder().name("订单1").price(15d).build();
        return o.toString();
    }
}
